-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix concurrent access #2 #719
base: main
Are you sure you want to change the base?
Conversation
62233b3
to
5782d59
Compare
Why not use sync.Map victoriaMetrics blog? |
to play safe, I suppose.
|
5657f1f
to
493af2d
Compare
// dependencies | ||
scheduleManager schedulemanager.ScheduleManager | ||
|
||
l sync.RWMutex | ||
// All hooks with 'kubernetes' bindings | ||
ScheduleLinks map[string]*ScheduleBindingToCrontabLink | ||
|
||
// bindings configurations | ||
ScheduleBindings []htypes.ScheduleConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// dependencies | |
scheduleManager schedulemanager.ScheduleManager | |
l sync.RWMutex | |
// All hooks with 'kubernetes' bindings | |
ScheduleLinks map[string]*ScheduleBindingToCrontabLink | |
// bindings configurations | |
ScheduleBindings []htypes.ScheduleConfig | |
// All hooks with 'kubernetes' bindings | |
ScheduleLinks map[string]*ScheduleBindingToCrontabLink | |
// bindings configurations | |
ScheduleBindings []htypes.ScheduleConfig | |
l sync.RWMutex | |
// dependencies | |
scheduleManager schedulemanager.ScheduleManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
Some other race conditions to fix have been detected.
Overview
What this PR does / why we need it
Special notes for your reviewer